﻿using System.Data.SqlClient;
using System.Configuration;

namespace CVM.Data
{
    public class Connection
    {
        private static SqlConnection instance = null;
        private static Configuration rootWebConfig;

        private Connection() { }

        public static SqlConnection GetInstance()
        {
            if (instance == null)
                instance = new SqlConnection(rootWebConfig.ConnectionStrings.ConnectionStrings["ApplicationServices"].ToString());
            
            return instance;
        }

    }
}
